<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 800px;
            height: 400px;
            background-color: pink;
            display: flex;
            /*让三个子盒子沿着侧轴底侧对齐*/
            /*align-items: flex-end;*/
        }
        div span{
            margin-right:20px;
            width: 150px;
            height: 100px;
            background-color: skyblue;
        }
        div span:nth-child(3){
            /*我们想只让第三个盒子下来底侧*/
            align-self: flex-end;
        }
        p{
            width: 800px;
            height: 400px;
            background-color: mediumpurple;
            display: flex;
        }
        p span{
            margin-right: 10px;
            width: 150px;
            height: 100px;
            background-color: palegoldenrod;
        }
        p span:nth-child(2){
            /*默认是0 -1比0小，所以在前面*/
            order: -1;
        }
    </style>
</head>
<body>
<div>
    <span>1</span>
    <span>2</span>
    <span>3</span>
</div>
<p>
    <span>1</span>
    <span>2</span>
    <span>3</span>
</p>
</body>
</html>
